#include "Heap.h"

int main()
 {
          	int a[] = {1,3,20,15,23,2};

	HP hp;
	HPInit(&hp);
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
       	HPPush(&hp, a[i]);    
	}

	while (!HPEmpty(&hp))
	{
		printf("%d\n", HPTop(&hp));
		HPPop(&hp);
	}

	HPDestory(&hp);
	return 0;
}